﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Agent.Messaging
{
  /// <summary>
  /// Result for the "safe" wait operations
  /// </summary>
  public enum WaitHandleResult
  {
    /// <summary>
    /// The wait failed for an unknown reason
    /// </summary>
    Failed = 0,

    /// <summary>
    /// One or more of the handles were null
    /// </summary>
    NullHandle = 1,

    /// <summary>
    /// One or more of the handles were disposed
    /// </summary>
    Disposed = 2,

    /// <summary>
    /// The wait timed out, if a timeout was given
    /// </summary>
    TimedOut = 3,

    /// <summary>
    /// The handle was successfully acquired
    /// </summary>
    Acquired = 4,
  }
}
